Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next
Subject: Setting Newlines In Text Fields From Java Agent
Feedback Type: Problem
Product Area: Domino Server
Technical Area: Functionality
Platform: Windows XP client
Release: Beta 2
Reproducible: Always

This is an old issue that I hoped would get fixed in 8.

When you try to put a newline in a text field from a Java agent (or via corba) the value does not come through properly. The characters are there, but the notes client does not render them properly as a newline. If you look at the document properties, the field appears there to have the correct values. In fact, if you copy and paste the value from the doc properties into the field, you get the newlines rendered correctly. You can also copy and paste from the field (on the form) in to a text editor and the text editor will show the newlines. You can then copy and past back from the text editor and get the correct rendering of the newlines in the notes client.

Example:

doc.replaceItemValue(“Foo”, “Bar\r\nWagga”);

will result in this appearing in the document properties dialog for the field Foo:

“Bar
Wagga”

But when you open the document the field Foo will be rendered as:

BarWagga

Note however that there are 2 zero width characters there that you can see if you put the caret in the field and use the cursor keys to move along the characters.


Feedback number WEBB6ZD2BL created by ~Tanita Asafoolitoopsi on 03/17/2007

Status: Open
Comments:

Setting Newlines In Text Fields Fro... (~Tanita Asafool... 17.Mar.07)
. . Paste it in and what are the charac... (~Sean Chutootex... 19.Mar.07)
. . . . Java Newline Problem (~Tanita Asafool... 19.Mar.07)
. . . . . . Java Newline Problem (~Tanita Asafool... 19.Mar.07)
. . Java Newline Problem. (~Tanita Asafool... 8.May.07)
. . . . Java Newline Problem (~Rex Fezgerokon... 12.Jun.08)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS